//store state 的类型
import { Pen } from '@meta2d/core';

export enum SelectionMode {
  File,
  Pen,
  Multiple,
}

export interface StoreState {
  mode: SelectionMode;
  pen: Pen[];
}

//store Action 的名称类型
type ActionNames = 'CHANGE_SELECT_MODE';

//Store Action类型
export interface StoreAction {
  type: ActionNames;
  payload?: any;
}

//选中状态
